import { useState } from 'react'

export default function PlusButton(props) {
    const [count, setCount] = useState(0);
    const [nameValue, setNameValue] = useState("");
    return (
        <>
            <input type="text" value={nameValue} onChange={(e)=>{setNameValue(e.target.value)}} />
            <div>{nameValue}</div>
            <button onClick={()=>{setCount(count + 1)}}>{count}</button>
        </>
    )
}